package com.kehutong.payfees.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

import java.math.BigDecimal;

@Table(value = "t_charge_bill_item", comment="收费账单-收费项", multi = true)
public class ChargeBillItem extends Entity {

    private static final long serialVersionUID = 1199648079146194500L;

    protected ChargeBillItem(String id) {
        super(id);
    }

    @Column(comment = "所属账单编号")
    private String billNo;

    @Column(comment = "收费项目Id")
    private String feeId;

    @Column(comment = "收费项名称")
    private String name;

    @Column(comment = "上次读数")
    private BigDecimal lastReadNumber;

    @Column(comment = "本次读数")
    private BigDecimal theReadNumber;

    @Column(comment = "数量")
    private BigDecimal amount;

    @Column(comment = "单价")
    private BigDecimal unitPrice;

    /**
     * 明细费项改版 小计=金额
     */
    @Column(comment = "小计")
    private BigDecimal subTotal;

    @Column(comment = "来源编号")
    private String monthReadNo;

    @Column(comment = "标准选用ID")
    private String chooseId;

    public String getBillNo() {
        return billNo;
    }

    public void setBillNo(String billNo) {
        this.billNo = billNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getSubTotal() {
        return subTotal;
    }

    public void setSubTotal(BigDecimal subTotal) {
        this.subTotal = subTotal;
    }

    public String getFeeId() {
        return feeId;
    }

    public void setFeeId(String feeId) {
        this.feeId = feeId;
    }

    public BigDecimal getLastReadNumber() {
        return lastReadNumber;
    }

    public void setLastReadNumber(BigDecimal lastReadNumber) {
        this.lastReadNumber = lastReadNumber;
    }

    public BigDecimal getTheReadNumber() {
        return theReadNumber;
    }

    public void setTheReadNumber(BigDecimal theReadNumber) {
        this.theReadNumber = theReadNumber;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public String getMonthReadNo() {
        return monthReadNo;
    }

    public void setMonthReadNo(String monthReadNo) {
        this.monthReadNo = monthReadNo;
    }

    public String getChooseId() {
        return chooseId;
    }

    public void setChooseId(String chooseId) {
        this.chooseId = chooseId;
    }
}
